package com.veer.shop.param;

import java.util.Map;

import com.veer.shop.utils.DateTimeUtil;

/**
 * 素材分类列表查询参数
 * 
 * @author WangBin
 * 2020年11月8日-下午8:04:59
 */
public class MaterialCategoryParam {
	public String category_name;
	public String created_at;
	private String begin_at = "";
	private String end_at = "";
	public String getCategoryName() {
		return category_name;
	}
	public void setCategoryName(String category_name) {
		this.category_name = category_name;
	}
	public String getCreatedAt() {
		return created_at;
	}
	public void setCreatedAt(String created_at) {
		// 这里需要预处理时间区间
		Map<String, String> createdAtRange = DateTimeUtil.parseCreatedAtRange(created_at);
		this.begin_at = createdAtRange.get("begin_at");
		this.end_at = createdAtRange.get("end_at");
		this.created_at = created_at;
	}
}
